home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / ncurses-5.3.lha / ncurses-5.3 / form / llib-lformw < prev    next >
Text File  |  2002-10-24  |  13KB  |  693 lines

  1. /****************************************************************************
  2.  * Copyright (c) 2002 Free Software Foundation, Inc.                        *
  3.  *                                                                          *
  4.  * Permission is hereby granted, free of charge, to any person obtaining a  *
  5.  * copy of this software and associated documentation files (the            *
  6.  * "Software"), to deal in the Software without restriction, including      *
  7.  * without limitation the rights to use, copy, modify, merge, publish,      *
  8.  * distribute, distribute with modifications, sublicense, and/or sell       *
  9.  * copies of the Software, and to permit persons to whom the Software is    *
  10.  * furnished to do so, subject to the following conditions:                 *
  11.  *                                                                          *
  12.  * The above copyright notice and this permission notice shall be included  *
  13.  * in all copies or substantial portions of the Software.                   *
  14.  *                                                                          *
  15.  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
  16.  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
  17.  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
  18.  * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
  19.  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
  20.  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
  21.  * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
  22.  *                                                                          *
  23.  * Except as contained in this notice, the name(s) of the above copyright   *
  24.  * holders shall not be used in advertising or otherwise to promote the     *
  25.  * sale, use or other dealings in this Software without prior written       *
  26.  * authorization.                                                           *
  27.  ****************************************************************************/
  28.  
  29. /****************************************************************************
  30.  *  Author: Thomas E. Dickey <dickey@clark.net> 2002                        *
  31.  ****************************************************************************/
  32. /* LINTLIBRARY */
  33.  
  34. /* ./fld_arg.c */
  35.  
  36. #include "form.priv.h"
  37.  
  38. #undef set_fieldtype_arg
  39. int    set_fieldtype_arg(
  40.         FIELDTYPE *typ, 
  41.         void    *(*const make_arg)(
  42.         va_list    *p1), 
  43.         void    *(*const copy_arg)(
  44.         const void *p1), 
  45.         void    (*const free_arg)(
  46.         void    *p1))
  47.         { return(*(int *)0); }
  48.  
  49. #undef field_arg
  50. void    *field_arg(
  51.         const FIELD *field)
  52.         { return(*(void **)0); }
  53.  
  54. /* ./fld_attr.c */
  55.  
  56. #undef set_field_fore
  57. int    set_field_fore(
  58.         FIELD    *field, 
  59.         chtype    attr)
  60.         { return(*(int *)0); }
  61.  
  62. #undef field_fore
  63. chtype    field_fore(
  64.         const FIELD *field)
  65.         { return(*(chtype *)0); }
  66.  
  67. #undef set_field_back
  68. int    set_field_back(
  69.         FIELD    *field, 
  70.         chtype    attr)
  71.         { return(*(int *)0); }
  72.  
  73. #undef field_back
  74. chtype    field_back(
  75.         const FIELD *field)
  76.         { return(*(chtype *)0); }
  77.  
  78. /* ./fld_current.c */
  79.  
  80. #undef set_current_field
  81. int    set_current_field(
  82.         FORM    *form, 
  83.         FIELD    *field)
  84.         { return(*(int *)0); }
  85.  
  86. #undef current_field
  87. FIELD    *current_field(
  88.         const FORM *form)
  89.         { return(*(FIELD **)0); }
  90.  
  91. #undef field_index
  92. int    field_index(
  93.         const FIELD *field)
  94.         { return(*(int *)0); }
  95.  
  96. /* ./fld_def.c */
  97.  
  98. #undef _nc_Default_Field
  99. FIELD    *_nc_Default_Field;
  100.  
  101. #undef _nc_Make_Argument
  102. TypeArgument *_nc_Make_Argument(
  103.         const FIELDTYPE *typ, 
  104.         va_list    *ap, 
  105.         int    *err)
  106.         { return(*(TypeArgument **)0); }
  107.  
  108. #undef _nc_Copy_Argument
  109. TypeArgument *_nc_Copy_Argument(
  110.         const FIELDTYPE *typ, 
  111.         const TypeArgument *argp, 
  112.         int    *err)
  113.         { return(*(TypeArgument **)0); }
  114.  
  115. #undef _nc_Free_Argument
  116. void    _nc_Free_Argument(
  117.         const FIELDTYPE *typ, 
  118.         TypeArgument *argp)
  119.         { /* void */ }
  120.  
  121. #undef _nc_Copy_Type
  122. NCURSES_BOOL _nc_Copy_Type(
  123.         FIELD    *dst, 
  124.         FIELD const *src)
  125.         { return(*(NCURSES_BOOL *)0); }
  126.  
  127. #undef _nc_Free_Type
  128. void    _nc_Free_Type(
  129.         FIELD    *field)
  130.         { /* void */ }
  131.  
  132. #undef new_field
  133. FIELD    *new_field(
  134.         int    rows, 
  135.         int    cols, 
  136.         int    frow, 
  137.         int    fcol, 
  138.         int    nrow, 
  139.         int    nbuf)
  140.         { return(*(FIELD **)0); }
  141.  
  142. #undef free_field
  143. int    free_field(
  144.         FIELD    *field)
  145.         { return(*(int *)0); }
  146.  
  147. /* ./fld_dup.c */
  148.  
  149. #undef dup_field
  150. FIELD    *dup_field(
  151.         FIELD    *field, 
  152.         int    frow, 
  153.         int    fcol)
  154.         { return(*(FIELD **)0); }
  155.  
  156. /* ./fld_ftchoice.c */
  157.  
  158. #undef set_fieldtype_choice
  159. int    set_fieldtype_choice(
  160.         FIELDTYPE *typ, 
  161.         NCURSES_BOOL (*const next_choice)(
  162.         FIELD    *p1, 
  163.         const void *p2), 
  164.         NCURSES_BOOL (*const prev_choice)(
  165.         FIELD    *p1, 
  166.         const void *p2))
  167.         { return(*(int *)0); }
  168.  
  169. /* ./fld_ftlink.c */
  170.  
  171. #undef link_fieldtype
  172. FIELDTYPE *link_fieldtype(
  173.         FIELDTYPE *type1, 
  174.         FIELDTYPE *type2)
  175.         { return(*(FIELDTYPE **)0); }
  176.  
  177. /* ./fld_info.c */
  178.  
  179. #undef field_info
  180. int    field_info(
  181.         const FIELD *field, 
  182.         int    *rows, 
  183.         int    *cols, 
  184.         int    *frow, 
  185.         int    *fcol, 
  186.         int    *nrow, 
  187.         int    *nbuf)
  188.         { return(*(int *)0); }
  189.  
  190. #undef dynamic_field_info
  191. int    dynamic_field_info(
  192.         const FIELD *field, 
  193.         int    *drows, 
  194.         int    *dcols, 
  195.         int    *maxgrow)
  196.         { return(*(int *)0); }
  197.  
  198. /* ./fld_just.c */
  199.  
  200. #undef set_field_just
  201. int    set_field_just(
  202.         FIELD    *field, 
  203.         int    just)
  204.         { return(*(int *)0); }
  205.  
  206. #undef field_just
  207. int    field_just(
  208.         const FIELD *field)
  209.         { return(*(int *)0); }
  210.  
  211. /* ./fld_link.c */
  212.  
  213. #undef link_field
  214. FIELD    *link_field(
  215.         FIELD    *field, 
  216.         int    frow, 
  217.         int    fcol)
  218.         { return(*(FIELD **)0); }
  219.  
  220. /* ./fld_max.c */
  221.  
  222. #undef set_max_field
  223. int    set_max_field(
  224.         FIELD    *field, 
  225.         int    maxgrow)
  226.         { return(*(int *)0); }
  227.  
  228. /* ./fld_move.c */
  229.  
  230. #undef move_field
  231. int    move_field(
  232.         FIELD    *field, 
  233.         int    frow, 
  234.         int    fcol)
  235.         { return(*(int *)0); }
  236.  
  237. /* ./fld_newftyp.c */
  238.  
  239. #undef _nc_Default_FieldType
  240. const FIELDTYPE *_nc_Default_FieldType = {0};
  241.  
  242. #undef new_fieldtype
  243. FIELDTYPE *new_fieldtype(
  244.         NCURSES_BOOL (*const field_check)(
  245.         FIELD    *p1, 
  246.         const void *p2), 
  247.         NCURSES_BOOL (*const char_check)(
  248.         int    p1, 
  249.         const void *p2))
  250.         { return(*(FIELDTYPE **)0); }
  251.  
  252. #undef free_fieldtype
  253. int    free_fieldtype(
  254.         FIELDTYPE *typ)
  255.         { return(*(int *)0); }
  256.  
  257. /* ./fld_opts.c */
  258.  
  259. #undef set_field_opts
  260. int    set_field_opts(
  261.         FIELD    *field, 
  262.         Field_Options opts)
  263.         { return(*(int *)0); }
  264.  
  265. #undef field_opts
  266. Field_Options field_opts(
  267.         const FIELD *field)
  268.         { return(*(Field_Options *)0); }
  269.  
  270. #undef field_opts_on
  271. int    field_opts_on(
  272.         FIELD    *field, 
  273.         Field_Options opts)
  274.         { return(*(int *)0); }
  275.  
  276. #undef field_opts_off
  277. int    field_opts_off(
  278.         FIELD    *field, 
  279.         Field_Options opts)
  280.         { return(*(int *)0); }
  281.  
  282. /* ./fld_pad.c */
  283.  
  284. #undef set_field_pad
  285. int    set_field_pad(
  286.         FIELD    *field, 
  287.         int    ch)
  288.         { return(*(int *)0); }
  289.  
  290. #undef field_pad
  291. int    field_pad(
  292.         const FIELD *field)
  293.         { return(*(int *)0); }
  294.  
  295. /* ./fld_page.c */
  296.  
  297. #undef set_new_page
  298. int    set_new_page(
  299.         FIELD    *field, 
  300.         NCURSES_BOOL new_page_flag)
  301.         { return(*(int *)0); }
  302.  
  303. #undef new_page
  304. NCURSES_BOOL new_page(
  305.         const FIELD *field)
  306.         { return(*(NCURSES_BOOL *)0); }
  307.  
  308. /* ./fld_stat.c */
  309.  
  310. #undef set_field_status
  311. int    set_field_status(
  312.         FIELD    *field, 
  313.         NCURSES_BOOL status)
  314.         { return(*(int *)0); }
  315.  
  316. #undef field_status
  317. NCURSES_BOOL field_status(
  318.         const FIELD *field)
  319.         { return(*(NCURSES_BOOL *)0); }
  320.  
  321. /* ./fld_type.c */
  322.  
  323. #undef set_field_type
  324. int    set_field_type(
  325.         FIELD    *field, 
  326.         FIELDTYPE *type, 
  327.         ...)
  328.         { return(*(int *)0); }
  329.  
  330. #undef field_type
  331. FIELDTYPE *field_type(
  332.         const FIELD *field)
  333.         { return(*(FIELDTYPE **)0); }
  334.  
  335. /* ./fld_user.c */
  336.  
  337. #undef set_field_userptr
  338. int    set_field_userptr(
  339.         FIELD    *field, 
  340.         void    *usrptr)
  341.         { return(*(int *)0); }
  342.  
  343. #undef field_userptr
  344. void    *field_userptr(
  345.         const FIELD *field)
  346.         { return(*(void **)0); }
  347.  
  348. /* ./frm_cursor.c */
  349.  
  350. #undef pos_form_cursor
  351. int    pos_form_cursor(
  352.         FORM    *form)
  353.         { return(*(int *)0); }
  354.  
  355. /* ./frm_data.c */
  356.  
  357. #undef data_behind
  358. NCURSES_BOOL data_behind(
  359.         const FORM *form)
  360.         { return(*(NCURSES_BOOL *)0); }
  361.  
  362. #undef data_ahead
  363. NCURSES_BOOL data_ahead(
  364.         const FORM *form)
  365.         { return(*(NCURSES_BOOL *)0); }
  366.  
  367. /* ./frm_def.c */
  368.  
  369. #undef _nc_Default_Form
  370. FORM    *_nc_Default_Form;
  371.  
  372. #undef new_form
  373. FORM    *new_form(
  374.         FIELD    **fields)
  375.         { return(*(FORM **)0); }
  376.  
  377. #undef free_form
  378. int    free_form(
  379.         FORM    *form)
  380.         { return(*(int *)0); }
  381.  
  382. #undef set_form_fields
  383. int    set_form_fields(
  384.         FORM    *form, 
  385.         FIELD    **fields)
  386.         { return(*(int *)0); }
  387.  
  388. #undef form_fields
  389. FIELD    **form_fields(
  390.         const FORM *form)
  391.         { return(*(FIELD ***)0); }
  392.  
  393. #undef field_count
  394. int    field_count(
  395.         const FORM *form)
  396.         { return(*(int *)0); }
  397.  
  398. /* ./frm_driver.c */
  399.  
  400. #undef _nc_Position_Form_Cursor
  401. int    _nc_Position_Form_Cursor(
  402.         FORM    *form)
  403.         { return(*(int *)0); }
  404.  
  405. #undef _nc_Refresh_Current_Field
  406. int    _nc_Refresh_Current_Field(
  407.         FORM    *form)
  408.         { return(*(int *)0); }
  409.  
  410. #undef _nc_Synchronize_Attributes
  411. int    _nc_Synchronize_Attributes(
  412.         FIELD    *field)
  413.         { return(*(int *)0); }
  414.  
  415. #undef _nc_Synchronize_Options
  416. int    _nc_Synchronize_Options(
  417.         FIELD    *field, 
  418.         Field_Options newopts)
  419.         { return(*(int *)0); }
  420.  
  421. #undef _nc_Set_Current_Field
  422. int    _nc_Set_Current_Field(
  423.         FORM    *form, 
  424.         FIELD    *newfield)
  425.         { return(*(int *)0); }
  426.  
  427. #undef _nc_Internal_Validation
  428. NCURSES_BOOL _nc_Internal_Validation(
  429.         FORM    *form)
  430.         { return(*(NCURSES_BOOL *)0); }
  431.  
  432. #undef _nc_First_Active_Field
  433. FIELD    *_nc_First_Active_Field(
  434.         FORM    *form)
  435.         { return(*(FIELD **)0); }
  436.  
  437. #undef _nc_Set_Form_Page
  438. int    _nc_Set_Form_Page(
  439.         FORM    *form, 
  440.         int    page, 
  441.         FIELD    *field)
  442.         { return(*(int *)0); }
  443.  
  444. typedef struct {
  445.   int keycode;           
  446.   int (*cmd)(FORM *);    
  447. } Binding_Info;
  448.  
  449. #undef form_driver
  450. int    form_driver(
  451.         FORM    *form, 
  452.         int    c)
  453.         { return(*(int *)0); }
  454.  
  455. #undef set_field_buffer
  456. int    set_field_buffer(
  457.         FIELD    *field, 
  458.         int    buffer, 
  459.         const char *value)
  460.         { return(*(int *)0); }
  461.  
  462. #undef field_buffer
  463. char    *field_buffer(
  464.         const FIELD *field, 
  465.         int    buffer)
  466.         { return(*(char **)0); }
  467.  
  468. /* ./frm_hook.c */
  469.  
  470. #undef set_field_init
  471. int    set_field_init(
  472.         FORM    *form, 
  473.         Form_Hook func)
  474.         { return(*(int *)0); }
  475.  
  476. #undef field_init
  477. Form_Hook field_init(
  478.         const FORM *form)
  479.         { return(*(Form_Hook *)0); }
  480.  
  481. #undef set_field_term
  482. int    set_field_term(
  483.         FORM    *form, 
  484.         Form_Hook func)
  485.         { return(*(int *)0); }
  486.  
  487. #undef field_term
  488. Form_Hook field_term(
  489.         const FORM *form)
  490.         { return(*(Form_Hook *)0); }
  491.  
  492. #undef set_form_init
  493. int    set_form_init(
  494.         FORM    *form, 
  495.         Form_Hook func)
  496.         { return(*(int *)0); }
  497.  
  498. #undef form_init
  499. Form_Hook form_init(
  500.         const FORM *form)
  501.         { return(*(Form_Hook *)0); }
  502.  
  503. #undef set_form_term
  504. int    set_form_term(
  505.         FORM    *form, 
  506.         Form_Hook func)
  507.         { return(*(int *)0); }
  508.  
  509. #undef form_term
  510. Form_Hook form_term(
  511.         const FORM *form)
  512.         { return(*(Form_Hook *)0); }
  513.  
  514. /* ./frm_opts.c */
  515.  
  516. #undef set_form_opts
  517. int    set_form_opts(
  518.         FORM    *form, 
  519.         Form_Options opts)
  520.         { return(*(int *)0); }
  521.  
  522. #undef form_opts
  523. Form_Options form_opts(
  524.         const FORM *form)
  525.         { return(*(Form_Options *)0); }
  526.  
  527. #undef form_opts_on
  528. int    form_opts_on(
  529.         FORM    *form, 
  530.         Form_Options opts)
  531.         { return(*(int *)0); }
  532.  
  533. #undef form_opts_off
  534. int    form_opts_off(
  535.         FORM    *form, 
  536.         Form_Options opts)
  537.         { return(*(int *)0); }
  538.  
  539. /* ./frm_page.c */
  540.  
  541. #undef set_form_page
  542. int    set_form_page(
  543.         FORM    *form, 
  544.         int    page)
  545.         { return(*(int *)0); }
  546.  
  547. #undef form_page
  548. int    form_page(
  549.         const FORM *form)
  550.         { return(*(int *)0); }
  551.  
  552. /* ./frm_post.c */
  553.  
  554. #undef post_form
  555. int    post_form(
  556.         FORM    *form)
  557.         { return(*(int *)0); }
  558.  
  559. #undef unpost_form
  560. int    unpost_form(
  561.         FORM    *form)
  562.         { return(*(int *)0); }
  563.  
  564. /* ./frm_req_name.c */
  565.  
  566. #undef form_request_name
  567. const char *form_request_name(
  568.         int    request)
  569.         { return(*(const char **)0); }
  570.  
  571. #undef form_request_by_name
  572. int    form_request_by_name(
  573.         const char *str)
  574.         { return(*(int *)0); }
  575.  
  576. /* ./frm_scale.c */
  577.  
  578. #undef scale_form
  579. int    scale_form(
  580.         const FORM *form, 
  581.         int    *rows, 
  582.         int    *cols)
  583.         { return(*(int *)0); }
  584.  
  585. /* ./frm_sub.c */
  586.  
  587. #undef set_form_sub
  588. int    set_form_sub(
  589.         FORM    *form, 
  590.         WINDOW    *win)
  591.         { return(*(int *)0); }
  592.  
  593. #undef form_sub
  594. WINDOW    *form_sub(
  595.         const FORM *form)
  596.         { return(*(WINDOW **)0); }
  597.  
  598. /* ./frm_user.c */
  599.  
  600. #undef set_form_userptr
  601. int    set_form_userptr(
  602.         FORM    *form, 
  603.         void    *usrptr)
  604.         { return(*(int *)0); }
  605.  
  606. #undef form_userptr
  607. void    *form_userptr(
  608.         const FORM *form)
  609.         { return(*(void **)0); }
  610.  
  611. /* ./frm_win.c */
  612.  
  613. #undef set_form_win
  614. int    set_form_win(
  615.         FORM    *form, 
  616.         WINDOW    *win)
  617.         { return(*(int *)0); }
  618.  
  619. #undef form_win
  620. WINDOW    *form_win(
  621.         const FORM *form)
  622.         { return(*(WINDOW **)0); }
  623.  
  624. /* ./fty_alnum.c */
  625.  
  626. typedef struct {
  627.   int width;
  628. } alnumARG;
  629.  
  630. #undef TYPE_ALNUM
  631. FIELDTYPE *TYPE_ALNUM;
  632.  
  633. /* ./fty_alpha.c */
  634.  
  635. typedef struct {
  636.   int width;
  637. } alphaARG;
  638.  
  639. #undef TYPE_ALPHA
  640. FIELDTYPE *TYPE_ALPHA;
  641.  
  642. /* ./fty_enum.c */
  643.  
  644. typedef struct {
  645.   char **kwds;
  646.   int  count;
  647.   NCURSES_BOOL  checkcase;
  648.   NCURSES_BOOL  checkunique;
  649. } enumARG;
  650.  
  651. #undef TYPE_ENUM
  652. FIELDTYPE *TYPE_ENUM;
  653.  
  654. /* ./fty_int.c */
  655.  
  656. typedef struct {
  657.   int precision;
  658.   long low;
  659.   long high;
  660. } integerARG;
  661.  
  662. #undef TYPE_INTEGER
  663. FIELDTYPE *TYPE_INTEGER;
  664.  
  665. /* ./fty_ipv4.c */
  666. #undef TYPE_IPV4
  667. FIELDTYPE *TYPE_IPV4;
  668.  
  669. /* ./fty_num.c */
  670.  
  671. typedef struct {
  672.   int    precision;
  673.   double low;
  674.   double high;
  675.   struct lconv* L;
  676. } numericARG;
  677.  
  678. #undef TYPE_NUMERIC
  679. FIELDTYPE *TYPE_NUMERIC;
  680.  
  681. /* ./fty_regex.c */
  682.  
  683. #include <regex.h>
  684.  
  685. typedef struct
  686. {
  687.   regex_t *pRegExp;
  688.   unsigned long *refCount;
  689. } RegExp_Arg;
  690.  
  691. #undef TYPE_REGEXP
  692. FIELDTYPE *TYPE_REGEXP;
  693.